home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / vb / sysclok.exe / SYSCLOCK.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-01-30  |  9.9 KB  |  244 lines

  1. SysClockFrm
  2. Form1%
  3. Timer1
  4. Label1
  5. MhTimer1_ClickV
  6. Timer1_Timer:
  7. TimeLbl
  8. Caption
  9. DateLBL=
  10. Form1
  11. Form_Click
  12.     Form_Load
  13. Form_DblClick
  14. ControlBox
  15. Label1_Click
  16. Label1_DblClick
  17. SysClockFrm
  18. GetModuleHandlev
  19. ModNameb
  20. GetHeapSpacesz
  21. hModule
  22. OldTotal
  23. GetFreeResources
  24. ModuleName
  25. rInfo
  26. Totalr
  27. HiWord
  28. FreeRT
  29. LoWord
  30. LongInt
  31. Temp2
  32. TFree
  33. texth
  34. CurrentX
  35. CurrentYp
  36. RText
  37. Timer1
  38. Timer
  39. GetActiveWindow
  40. GetWindowTextLength
  41. hWndN
  42. SetWindowText
  43. lpstr
  44. IsIconic
  45.     GetParent
  46. IsWindow
  47. WindowVisible[
  48. IsWindowVisible
  49. GetWindowText
  50. OldText
  51. NewTextk
  52. Handle
  53. ParentL
  54. TempVara
  55.     OldHandleV
  56. FixTitleB
  57. WinHand
  58. ShowTime
  59. WinHnd"
  60. TemVar
  61. FixTileb
  62. ModHnd
  63. ShowWindow
  64. nCmdShow
  65. SW_ShowNormal}
  66. WinShow
  67. WinFlash
  68. FlashWindowf
  69. bInvert6
  70. Heightg
  71. Form_Paint
  72. BorderFrame
  73. Screen@
  74. ActiveFormT
  75. Width
  76. Frame
  77. Label1
  78. Label1_MouseDownI
  79. Button
  80. Shift
  81.     PixStartX
  82. TPRatio
  83.     PixStartY
  84. PixOffsetX
  85. PixOffsetY
  86. OkToMove'
  87. GhostFormPixStartX=
  88.     GhostForm
  89. Label1_MouseMove
  90. PixX.
  91. Label1_MouseUp
  92. FormM
  93. UnrealizeObjectw
  94. hObject
  95. SelectObject
  96. GetStockObject
  97. nIndexZ
  98.     Rectangle
  99. SetROP2
  100.     nDrawMode
  101. CreateRectRgn
  102. SelectClipRgn
  103. hRgn,
  104. DeleteObjectf
  105. GetDC    
  106.     ReleaseDCm
  107. DeleteDC7
  108.     RestoreDC
  109. nSavedDC
  110. hScreen/    
  111. hRegionK
  112. RgnX1
  113. RgnY1]
  114. RgnX2
  115. RgnY2
  116. hBrush
  117. NULL_BRUSH
  118. hObjOld
  119. PixStart
  120.     Scalemodec
  121. PixelWidth
  122. ScaleWidth
  123. R2_NOTXORPEN;
  124. hRegion2
  125. hScreen2
  126. SetWindowPosl
  127. hWndInsertAfteru
  128. wFlags
  129.     AsInteger
  130. ByValwFlagsr
  131. SetStayOnTop
  132. Valueg
  133. OnTop
  134. Norml
  135. SettingFrm
  136. SettingsFrmM
  137. GetPrivateProfileString
  138. lpApplicationName
  139.     lpKeyName
  140.     lpDefault$
  141. lpReturnedString
  142. nSize0
  143. lpFileName?
  144. WritePrivateProfileString
  145. lpString:    
  146. lplFileName
  147. AddResFlag
  148. ResStr
  149. TitleBarFlag
  150. Setting
  151.     OnTopFlag
  152. HideFlag
  153. ReadPrivateProfileString
  154. RetBuf
  155. SetFrmSize
  156. Form_GotFocus
  157. Position
  158. SepB    
  159. GetDeviceCaps
  160. AllTheTime
  161. LOGPIXELSX
  162. GTwpsPerPxlX
  163. HORZRES
  164. FontSizeJ
  165. Declare API functions for getting & setting windows titles
  166. Declare API functions for dragging a rectangle of the form
  167.   DPxn
  168. Declare form variables
  169. Fixed for passing to API
  170. Variables for dragging form subs
  171. Twips to Pixel ratio
  172. FixTitle
  173.  NOTICE 
  174. The FixTitle Routine is copyrighted by Paul Bonner and Ziff-Davis, 1993
  175. This sub adds the time to the title bar of the active visible window and
  176.   takes two parameters: the windows handle and an integer flag that indicates
  177.   whether the time should be removed or added shown 
  178. Declare variablesi
  179. Start with a DoEvents to let other apps proceeda
  180. If a parent exists and is visible then use it's handle
  181. Get Caption of active window or if there is none then exit sub
  182. exits if no captions
  183. Strip off null character (Chr$(0)) from fixed string passed by API
  184. Set the new caption to the old caption and test for "<<" in the caption>
  185. Trim the new caption string
  186. If flag is true then add the time to the caption
  187. hh:mm am/pm
  188. Make sure the windows handle is still valid, the window is visible and the new caption H
  189.  isn't the same as the old caption
  190. Form_Load
  191. Fixed string for return buffer from .ini file
  192. Get previous form position from .ini file
  193. Settings
  194. Position
  195. SysClock.ini
  196. If previous position is returned use it to position the form
  197. Set form position if there is a saved position
  198. If no previous position then position the form at bottom right of screen
  199. Calculate the TwipstoPixel ratio
  200. Set to pixelst
  201. gives width in pixelst
  202. Switch back to twips
  203. Get settings from SysClock.ini
  204. Settings
  205. Title Bar
  206. False
  207. SysClock.ini
  208. Settings
  209. Add Res
  210. False
  211. SysClock.ini
  212. Settings
  213. On Top
  214. False
  215. SysClock.ini
  216. Set form to stay on top if OnTopFlag is True
  217. Fill label immediately by calling timer eventn
  218. Set length of clock depending on length of time label 
  219. Form_Paint
  220. Draw 3D frame around formu
  221. GhostForm
  222. ) NOTICE 
  223. The GhostForm Routine is copyrighted by Keith Pleas and Fawcette Technical Publications, 1993
  224. This sub provides the ghostform for dragging
  225. Label1_DblClick
  226. Brings up configuration settings dialog boxi
  227. Label1_MouseDown
  228. This sub provides dragging capability for the clock form
  229. Label1_MouseMove
  230. This sub is for dragging the form
  231. Label1_MouseUp
  232. This sub is for dragging the form
  233. Timer1_Timer
  234. If AddRes is true then add resources to displays
  235. Determine the percent of free resources using functions
  236. Put resources in a stringf
  237. Put the info in label caption 
  238. ddd m/d/yy  hh:mm AM/PM
  239. Add time to title bar of active window if TitleBarFlag is true
  240. Get the window handle of the active window
  241. Exit if active window is the sysclock form
  242. If the window handle changes then call Fixtitle to first remove thee
  243.   old title (this is necessary before resetting the new time) 
  244.